{extend name="public:base" /}
{block name="theme"}转介绍管理{/block}
{block name="small_theme"}话术列表{/block}
{block name="breadcrumb"}
<li><a href="{:url('index')}">话术列表</a></li>
<li class="active">话术首页</li>
{/block}
{block name="content"}
<link rel="stylesheet" href="/static/layui/css/layui.css">
<div class="row">
<div>
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">话术管理</li>
            <li class=""><a href="{:url('admin/ts/add')}">添加话术</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th style="width: 30px;">排序</th>
                        <th>话术名称</th>
                        <th>订单状态</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="slide_list" item="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.sort}</td>
                        <td>{$vo.name}</td>
                        <td>{$slide_category_list[$vo['state_id']]|default='未分类'}</td>
                        <td>{$vo.status_text}</td>
                        <td>
                            <a href="{:url('admin/ts/edit',['id'=>$vo['id']])}" class="layui-btn layui-btn-normal layui-btn-mini">编辑</a>
                            <a href="{:url('admin/ts/delete',['id'=>$vo['id']])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-delete">删除</a>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</div>
{/block}
{block name="js"}
<script src="/static/layui/lay/dest/layui.all.js"></script>
<script src="__JS__/layui.common.js"></script>
<script>
    highlight_subnav("{:url('index')}");
</script>
{/block}